<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <header>
   
  </header>
  <nav>
        <RouterLink to="/">登录</RouterLink>
        <RouterLink to="/about">About</RouterLink>
        <RouterLink to="/memberAdd">会员添加</RouterLink>
        <RouterLink to="/memberList">会员列表</RouterLink>
        <RouterLink to="/membserLebel">添加等级</RouterLink>
        <RouterLink to="/membserLebelList">会员等级列表</RouterLink>
        <RouterLink to="/membserRightList">会员权益列表</RouterLink>
        <RouterLink to="/membserRightAdd">会员权益添加</RouterLink>
        <RouterLink to="/shopList">门店列表</RouterLink>
        <RouterLink to="/shopAdd">门店添加</RouterLink>
        <RouterLink to="/ShopUpdate">门店修改</RouterLink>
        <RouterLink to="/DiscountAdd">优惠卷添加</RouterLink>
        <RouterLink to="/discountList">优惠卷列表</RouterLink>
        <RouterLink to="/houseUpd">房型修改</RouterLink>
        <RouterLink to="/houseTypeList">房型列表</RouterLink>
        <RouterLink to="/houseTypeAdd">房型添加</RouterLink>
        <RouterLink to="/houseNoAdd">房号添加</RouterLink>
        <RouterLink to="/houseNoList">房号列表</RouterLink>
        <RouterLink to="/housePriceAdd">房价添加</RouterLink>
        <RouterLink to="/housePriceList">房价列表</RouterLink>
        <RouterLink to="/housePriceUpd">房价修改</RouterLink>
        <RouterLink to="/testHouseAdd">房型添加周考3</RouterLink>
        <RouterLink to="/testHouseList">房型列表周考3</RouterLink>
        <RouterLink to="/testHouseUpd">房型修改周考3</RouterLink>
      </nav>
  <RouterView />
</template>

<style>
a{ margin-right: 20}
</style>
<style scoped>


header {
  line-height: 1.5;
  max-height: 100vh;
}

.logo {
  display: block;
  margin: 0 auto 2rem;
}

nav {
  width: 100%;
  font-size: 12px;
  text-align: center;
  margin-top: 2rem;
}

nav a.router-link-exact-active {
  color: var(--color-text);
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid var(--color-border);
}

nav a:first-of-type {
  border: 0;
}

@media (min-width: 1024px) {
  header {
    display: flex;
    place-items: center;
    padding-right: calc(var(--section-gap) / 2);
  }

  .logo {
    margin: 0 2rem 0 0;
  }

  header .wrapper {
    display: flex;
    place-items: flex-start;
    flex-wrap: wrap;
  }

  nav {
    text-align: left;
    margin-left: -1rem;
    font-size: 1rem;

    padding: 1rem 0;
    margin-top: 1rem;
  }
}
</style>
